<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?=$title?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?=$this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_outlet" => $id_outlet))?>
								<fieldset>
									<div class="control-group">
										<label class="control-label">Tanggal</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_date('tanggal', $d_outlet_pengiriman[0]->tanggal, "id_tanggal", 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">PIC</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('pic', $d_outlet_pengiriman[0]->pic, 'class="span4"')?>
										</div>
									</div>
                  <?php
                  foreach($product as $prdk){
                    ?>
                  <fieldset>
                    <hr />
                    <label><b><?=$prdk['nama']?></b></label>
                    <?php
                    foreach($prdk["child"] as $ch){
                    ?>
                      <div class="control-group">
                        <label class="control-label"><?=$ch->name?></label>
                        <div class="controls">
                          <?=$this->form_eksternal->form_input('child_'.$data_pro[0]->id_products, "", 'class="span4"')?>
                        </div>
                      </div>
                    <?php
                    }
                    ?>
                  </fieldset>
                    <?php
                  }
                  ?>
								</fieldset>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<button class="btn" onclick="history.go(-1);return false;">Cancel</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</div>